package com.ruoyi.fun.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 后台更新记录对象 sys_backend_update_log
 * 
 * @author ruoyi
 * @date 2025-09-10
 */
public class SysBackendUpdateLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 版本号 */
    @Excel(name = "版本号")
    private String versionNumber;

    /** 更新类型（major:主版本,minor:次版本,patch:补丁版本） */
    private String updateType;

    /** 更新标题 */
    @Excel(name = "更新标题")
    private String updateTitle;

    /** 更新内容描述 */
    @Excel(name = "更新内容描述")
    private String updateContent;

    /** 新增功能列表 */
    @Excel(name = "新增功能列表")
    private String updateFeatures;

    /** 修复问题列表 */
    @Excel(name = "修复问题列表")
    private String bugFixes;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setVersionNumber(String versionNumber) 
    {
        this.versionNumber = versionNumber;
    }

    public String getVersionNumber() 
    {
        return versionNumber;
    }

    public void setUpdateType(String updateType) 
    {
        this.updateType = updateType;
    }

    public String getUpdateType() 
    {
        return updateType;
    }

    public void setUpdateTitle(String updateTitle) 
    {
        this.updateTitle = updateTitle;
    }

    public String getUpdateTitle() 
    {
        return updateTitle;
    }

    public void setUpdateContent(String updateContent) 
    {
        this.updateContent = updateContent;
    }

    public String getUpdateContent() 
    {
        return updateContent;
    }

    public void setUpdateFeatures(String updateFeatures) 
    {
        this.updateFeatures = updateFeatures;
    }

    public String getUpdateFeatures() 
    {
        return updateFeatures;
    }

    public void setBugFixes(String bugFixes) 
    {
        this.bugFixes = bugFixes;
    }

    public String getBugFixes() 
    {
        return bugFixes;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionNumber", getVersionNumber())
            .append("updateType", getUpdateType())
            .append("updateTitle", getUpdateTitle())
            .append("updateContent", getUpdateContent())
            .append("updateFeatures", getUpdateFeatures())
            .append("bugFixes", getBugFixes())
            .append("publishTime", getPublishTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
